import { config } from './config';
import log4js = require("log4js");
var moment = require("moment");
var d = moment().format("YYYY-MM-DD");
log4js.configure({
    appenders: [
        { type: "console" },
        {
            type: "file",
            filename: config.logRootDir + "/fbslog-" + d + ".log",
            category: 'fbsError',
            maxLogSize: 1024000,
            backups: 3,
        }
    ]
    , replaceConsole: true
});
var _logger = log4js.getLogger("fbsError");
export class logger {
    static log(message: string, args?: any[]) {
        _logger.info(message, args);
    }
    static error(message: string, args?: any[]) {
        _logger.error(message, args);
    }
}